package net.lijingye.education.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import net.lijingye.education.entity.Token;

/**
 * Created by LijingYe on 2016/3/26.
 */
public class TokenVO {
    @JSONField(name = "access_token", ordinal = 0, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private String accessToken;

    public TokenVO(Token token) {
        this.accessToken = token.getAccessToken();
    }

    public TokenVO(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    @Override
    public String toString() {
        return "TokenVO{" +
                "accessToken='" + accessToken + '\'' +
                '}';
    }
}
